//
//  BDPostModel.h
//  GetWebText
//
//  Created by wen on 2017/8/30.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BDUserModel.h"
#import "NSObject+YYModel.h"

//typedef NS_ENUM(NSUInteger, BDMeractenType) {
//    BDMeractenTypeLock,
//    BDMeractenTypeUnlock,
//    BDMeractenTypeNomeracten
//};

typedef NS_ENUM(NSUInteger, BDUserVerifyType){
    BDUserVerifyTypeNone = 0,     ///< 没有认证
    BDUserVerifyTypeStandard,     ///< 个人认证，黄V
//    BDUserVerifyTypeOrganization, ///< 官方认证，蓝V
//    BDUserVerifyTypeClub,         ///< 达人认证，红星
};

typedef NS_ENUM(NSUInteger, BDCategory) {
    BDCategorySpa           =1,
    BDCategoryKTV           =2,
    BDCategoryNightClub     =3,
    BDCategoryBar           =4,
    BDCategoryLiquid        =5,
    BDCategoryOther         =12
};

typedef NS_ENUM(NSUInteger, BDPostStatus) {
    BDPostStatusNormal,
    BDPostStatusFrozen,
};

@interface BDPostModel : NSObject

@property (nonatomic, assign) int32_t my_id;
@property (nonatomic, assign) BDCategory category;
@property (nonatomic, assign) BOOL is_public;           //这个字段用来表示是否屏蔽
@property (nonatomic, strong) NSString *post;
@property (nonatomic, strong) NSArray *images;
@property (nonatomic, assign) BDPostStatus status;
@property (nonatomic, assign) int32_t income_flow;      //这个字段是新加的，还未知效果
@property (nonatomic, assign) float price;
@property (nonatomic, assign) int32_t repost_id;
@property (nonatomic, assign) int32_t province_id;
@property (nonatomic, assign) int32_t city_id;
@property (nonatomic, assign) int32_t district_id;
@property (nonatomic, assign) NSString *consumed_at;    //购买帖子时间，使用目的不明

//消费店铺的信息
@property (nonatomic, strong) NSString *shop;
@property (nonatomic, strong) NSString *address;
@property (nonatomic, strong) NSString *longitude;
@property (nonatomic, strong) NSString *latitude;
@property (nonatomic, strong) NSString *contact;        //联系方式
@property (nonatomic, strong) NSString *consumption;    //消费数目

@property (nonatomic, assign) int32_t posted_at;        //发帖时间
@property (nonatomic, strong) NSString *created_at;     //创建时间
@property (nonatomic, strong) NSString *updated_at;     //更新时间



//针对转帖和非转帖两种情况
@property (nonatomic, strong) BDUserModel *user;
//@property (nonatomic, strong) NSString *cover;
//@property (nonatomic, strong) NSString *nickname;
//@property (nonatomic, assign) NSInteger user_id;
//@property (nonatomic, assign) NSInteger vip_level;

//转帖内容
@property (nonatomic, strong) BDPostModel *repost;

@property (nonatomic, strong) NSArray *purchase;//判断是否购买该帖子
@property (nonatomic, strong) NSArray *repost_purchase;//判断是否购买转帖


@property (nonatomic, assign) int32_t repostCount;//转发次数
@property (nonatomic, assign) int32_t commentCount;//评论次数
@property (nonatomic, assign) int32_t praiseCount;//点赞次数
@property (nonatomic, assign) int32_t sharedCount;//分享次数
@property (nonatomic, assign) int32_t viewCount;//浏览次数
@property (nonatomic, assign) int32_t reportCount;//这个还不知道是什么

@property (nonatomic, assign) BOOL fav;//是否收藏
@property (nonatomic, assign) BOOL praise;//是否点赞
@property (nonatomic, assign) BOOL is_follow;//是否关注

- (BOOL)isPurchase;

@end
